<?xml version="1.0" encoding="utf-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<composite:interface>
    <composite:attribute name="label" required="true" />
    <composite:attribute name="hint" required="false" />
</composite:interface>
<composite:implementation>
    <div id="#{cc.clientId}" class="form-field clearfix">
        <h:outputLabel id="label" value="#{cc.attrs.label}:" styleClass="label" />
        <h:panelGroup styleClass="output">
            <composite:insertChildren />
        </h:panelGroup>
        <h:panelGroup rendered="#{not empty cc.attrs.hint}" layout="block">
            <small>#{cc.attrs.hint}</small>
        </h:panelGroup>
    </div>
</composite:implementation>
</html>